package classes;

import bookException.BookExceptionCode;
import libs.DataBase;
import entity.User;

public class AddClass {

	private DataBase db;
	
	public AddClass() {
		this.db = DataBase.getInstance();
		db.Connect();
	}
	
	public void addPerson(User p){
		this.db.Insert("user", 
				new String[]{"Name","Surname","Middlename","Cellphone","Homephone","Address","Mail"}, 
				new String[]{p.getName(), p.getSurname(), p.getMiddlename(), p.getMobile(), p.getPhonehome(),p.getAddress(),p.getMail()});
	}
}